-- GENERATED SPELL FOR [Spellreaver Marathelle] --


function spell0_19926(pUnit, Event) --@Arcane Tempest,Self--
pUnit:FullCastSpellOnTarget(35843,pUnit)
pUnit:RegisterEvent('Sorts_19926', 4500, 1)
end

function spell1_19926(pUnit, Event) --@Coldflame,Self--
pUnit:FullCastSpellOnTarget(35848,pUnit)
pUnit:RegisterEvent('Sorts_19926', 599, 1)
end

function spell2_19926(pUnit, Event) --@Ring of Flame,n/a--
pUnit:FullCastSpellOnTarget(35831,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19926', 20313, 1)
end

function Sorts_19926(pUnit, Event)
local choix_sorts_19926 = math.random(0, 2)
if choix_sorts_19926 == 0 then
pUnit:RegisterEvent('spell0_19926', 1, 1)
end
if choix_sorts_19926 == 1 then
pUnit:RegisterEvent('spell1_19926', 1, 1)
end
if choix_sorts_19926 == 2 then
pUnit:RegisterEvent('spell2_19926', 1, 1)
end
end

function mob19926_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19926', math.random(1500, 3000), 1)
end

function mob19926_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19926_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19926_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19926, 1, 'mob19926_Action')
RegisterUnitEvent(19926, 2, 'mob19926_Leave')
RegisterUnitEvent(19926, 3, 'mob19926_Kill')
RegisterUnitEvent(19926, 4, 'mob19926_Die')
